StringScanner.ScanToSmatchI Function
Syntax
Text as C = ScanToSmatchI as C(pattern as c)
Arguments
- Text
The text between the starting and ending offset positions.
- pattern
The text that you want to find. You may use the "?" (single character) and "*" (any number of characters) expressions.
Description
Skip until a patterns is encountered. Return text we scanned over.
Discussion
The <StringScanner>.ScanToSmatchI() function moves the offset to the beginning of the Find_Text and returns the text between the starting and ending positions of the offset.
Example
dim scanner as P dim txt as C txt = <<%text% This is wonderful text written by a great writer %text% scanner = stringscanner.create(txt) ? scanner.ScanToSmatchI("gr*t") = This is wonderful text written by a ? scanner.GetToOffset() = This is wonderful prose written by a technical writer of ? scanner.getremainder() = great merit.
See Also